package types

type SysFile struct {
	BaseModel
	Path   string `json:"path"`
	Name   string `json:"name"`
	Uuid   string `json:"uuid" form:"fileKey" binding:"required"`
	Size   int64  `json:"size"`
	Suffix string `json:"suffix"`
}

func (SysFile) TableName() string {
	return "sys_file"
}

type FileListStruct struct {
	PageStrct
	KeyWords string `json:"keywords" form:"keywords"`
}

type FileListResponse struct {
	List  []SysFile `json:"list"`
	Total int64     `json:"total"`
}
